<template>
	<view>
		<mescroll-body :sticky="true" ref="mescrollRef" @init="mescrollInit" @down="downCallback" :up="{use:false}">
			<view class="banner">
				<image mode="aspectFill" src="@/static/home/headBG.png"></image>
			</view>
			<view class="content">
				<view class="search">
					<image src="@/static/home/search.png"></image>
					<input type="text" class="ipt" placeholder-class="pipt" placeholder="亲，遇到问题搜一下吧!">
				</view>
				<view class="group-box">
					<view class="caption">热门问题</view>
					<view class="box">
						<view class="row">交易手续费是如何收取的?</view>
						<view class="row">期货通有什么交易品种?</view>
						<view class="row">期货通软件是否收费?</view>
						<view class="row">期货公司联系方式?</view>
						<view class="row">期货开户选哪家公司?</view>
					</view>
				</view>
			</view>
		</mescroll-body>
		<view class="bottom-fit">
			<view class="bottom-btn" :style="{'padding-bottom':botOperateBut}">
				<view class="btns">意见反馈</view>
				<view class="btns">联系人工客服</view>
			</view>
		</view>
	</view>
</template>

<script>
	import MescrollMixin from "@/uni_modules/mescroll-uni/components/mescroll-uni/mescroll-mixins.js";
	export default {
		mixins: [MescrollMixin], // 使用mixin
		data() {
			return {
				botOperateBut:0
			};
		},
		onShow(){

		},
		methods:{
			/*下拉刷新的回调 */
			downCallback() {
				this.mescroll.resetUpScroll();
				setTimeout(()=>{
					this.mescroll.endSuccess(9,false);// 加载成功
				},1500)
			},
		}
	}
</script>

<style lang="scss">
.banner{
	width:100%;height:290rpx;
	& image{
		width:100%;height:100%;
	}
}
.content{
	background-color: #fff;
	position: relative;
	margin-top:-40rpx;
	z-index:1;
	border-radius: 32rpx 32rpx 0 0;
	padding:32rpx 32rpx 46rpx;
	.search{
		height: 66rpx;
		background: #F4F5F7;
		border-radius: 32rpx;
		display: flex;
		align-items: center;
		padding:0 20rpx;
		& image{
			width:48rpx;height:48rpx;
			margin-right:20rpx;
		}
		.ipt{
			font-size: 24rpx;
			color: rgba(0,0,0,0.8);
		}
		.pipt{
			color: #8E8E93;
		}
	}
	.group-box{
		padding-top:48rpx;
		.caption{
			font-size: 32rpx;
			font-weight: bold;
			color: #000000;
			position: relative;
			padding-bottom:26rpx;
			box-sizing: border-box;
		}
		.caption::after{
			content:'';
			position: absolute;
			left:0;bottom:0;
			width: 60rpx;
			height: 10rpx;
			background: linear-gradient(90deg, #FF3B30 0%, rgba(255,59,48,0) 100%);
		}
		.box{
			.row{
				border-bottom:2rpx solid #F6F7F9;
				font-size: 28rpx;
				font-weight: bold;
				color: rgba(0,0,0,0.8);
				padding:32rpx 0;
			}
		}
	}
}
.bottom-fit{
	position: fixed;
	left:0;bottom:0;
	width: 100%;
	padding:32rpx;
	box-sizing: border-box;
	box-shadow: 0px 0 16rpx 2rpx rgba(51,51,51,0.2);
	background-color: #fff;
	z-index: 9;
	.bottom-btn{
		display: flex;
		align-items: center;
		justify-content: space-between;
		.btns{
			width: 326rpx;
			height: 88rpx;
			border-radius: 16rpx;
			border: 2rpx solid #F4F5F7;
			text-align: center;
			line-height: 88rpx;
			font-size: 32rpx;
			font-weight: 500;
			color: rgba(0,0,0,0.8);
			box-sizing: border-box;
		}
		.btns:last-child{
			background: #EE5953;
			border:0;
			color:#fff;
		}
	}
}

</style>
